package com.czxy.service;

import com.czxy.dao.UserDao;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;


//@Component("us")
@Service("us")
public class UserService {

    @Resource
    private UserDao userDao; //  = new UserDao();

    public void findAll(){
        System.out.println("UserService执行 查询所有 ");
        userDao.findAll();
    }
}
